package com.leaves.entity.excel;

import com.leaves.common.util.excel.ExcelExport;
import com.leaves.common.util.excel.ExcelImport;
import lombok.Data;

/**
 * @Author: LEAVES
 * @Version 1.0
 * @Date: 2022年08月29日  16时43分40秒
 * @Description:
 *
 */
@Data
public class UserInfoExcel {

    /**
     * 行号
     */
    private int rowNum;


    /**
     * 姓名
     */
    @ExcelImport("姓名")
    @ExcelExport(value = "姓名", sort = 1, example = "叶子")
    private String realName;

    /**
     * 账号
     */
    @ExcelImport(value = "账号", required = true, unique = true)
    @ExcelExport(value = "账号", sort = 2, example = "yz")
    private String userName;

    /**
     * 密码
     */
    @ExcelImport(value = "密码", required = true)
    @ExcelExport(value = "密码", sort = 3, example = "123456")
    private String password;

    /**
     * 联系方式
     */
    @ExcelImport(value = "联系方式", maxLength = 11, required = true, unique = true)
    @ExcelExport(value = "联系方式", sort = 4, example = "18888888888")
    private String phone;
//
//    /**
//     * 性别
//     * 数据映射
//     */
//    @ExcelImport(value = "性别", kv = "0-未知;1-男;2-女", required = true)
//    @ExcelExport(value = "性别", kv = "0-未知;1-男;2-女", sort = 4, example = "1")
//    private Integer sex;

    /**
     * 错误提示
     */
    private String rowTips;

    /**
     * 原始数据
     */
    private String rowData;

}
